/**
 * 版权所有（c）2021. 上海海鼎信息工程股份有限公司，保留所有权利
 */
package com.lovely602.design.behavior.mediator.demo;

/**
 * 简单中介者模式
 *
 * @author lizhixing
 */
public class SimpleMediatorPattern {

  public static void main(String[] args) {
    SimpleColleague c1, c2;
    c1 = new SimpleConcreteColleague1();
    c2 = new SimpleConcreteColleague2();
    c1.send();
    System.out.println("-----------------");
    c2.send();
  }

}
